

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class preprocess {
	public static void main(String[] args) throws IOException {

		FileReader stdin = new FileReader(args[0]);
		BufferedReader bufin = new BufferedReader(stdin);
		String line;
		int count = 1;
		while ((line = bufin.readLine()) != null) {
			Pattern p = Pattern.compile("\\d+"); 
			Matcher m = p.matcher(line); 
			String tmp = m.group(); 
			char[] sp = tmp.toCharArray();
			int index = line.indexOf(sp[sp.length-1]);
			String num = line.substring(0,index+1);
			String newNum = num.replaceAll("\\s+", "");
			String key = line.substring(index+2);
			System.out.println(newNum + "%" + key);
			count++;
		}
	}
}
